//
//  User.m
//  Together_iOS
//
//  Created by applex on 14-3-1.
//  Copyright (c) 2014年 QIU Shuang. All rights reserved.
//

#import "User.h"
#import "Plan.h"


@implementation User

@dynamic name;
@dynamic remoteID;
@dynamic plans;


- (void)unpackDictionary:(NSDictionary *)dictionary {
    [super unpackDictionary:dictionary];
    self.name = dictionary[@"name"];
}


+ (NSArray *)defaultSortDescriptors {
    return [NSArray arrayWithObjects:
            [NSSortDescriptor sortDescriptorWithKey:@"name" ascending:NO],
            nil];
}

@end
